<div class="title" *ngIf="isShowTitle">评论</div>
<div class="comment " *ngFor="let item of tools.setArray(comments);let i =index">
  <div class="comment-header">
    <seed-avatar [userId]="item.userId"
                 [lazyLoadAvatar]="item.userInfoBasicRespVO?.iconUrl ? item.userInfoBasicRespVO.iconUrl : item.iconUrl"></seed-avatar>
    <div class="basic">
      <p>
        <span class="poster  text-ellipsis">{{item.userInfoBasicRespVO?.nickName ? item.userInfoBasicRespVO.nickName : item.nickName }}</span>
        <span class="stats" *ngIf="item.isDigg == false || item.isDigg == true" (click)="handleDigg(item,$event)"
              [class.thumb]="item.isDigg"
              #commentDigg>
            {{item.diggCount}}
        </span>
      </p>
      <time class="date">{{item.createTime | amDateFormat:'MM-DD HH:mm'}}</time>
    </div>
  </div>
  <p class="comment-content">
    {{getContent(item.content)}}
  </p>

  <div class="show-control" *ngIf="item.content.length > maxContentLength">
    <div class="more-detail"
         (click)="showMore(item.content.toString(),i,$event,item.content); $event.stopPropagation()">
      <span class="control-text">显示全部</span>
    </div>

    <div class="less-detail"
         (click)="showLess(item.content.toString(),i,$event,item.content); $event.stopPropagation()">
      <span class="control-text">收起</span>
    </div>
  </div>
</div>
